/**
 * @description: 请求结果集
 */
export enum ResultEnum {
  SUCCESS = '10000',
  ERROR = '-20099',
  TIMEOUT = '-10003',
  TYPE = 'success',
  RELOADLOGIN = '-10001'
}

export const RELOADLOGIN = ['-10001', '-10002', '-10003', '-20001', '-20002', '-20010']

/**
 * @description: 请求方法
 */
export enum RequestEnum {
  GET = 'GET',
  POST = 'POST',
  PATCH = 'PATCH',
  PUT = 'PUT',
  DELETE = 'DELETE'
}

export const errorCodeArr: string[] = ['10013', '10044']

/**
 * @description:  常用的contentTyp类型
 */
export enum ContentTypeEnum {
  // json
  JSON = 'application/json;charset=UTF-8',
  // json
  TEXT = 'text/plain;charset=UTF-8',
  // form-data 一般配合qs
  FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
  // form-data  上传
  FORM_DATA = 'multipart/form-data;charset=UTF-8'
}
